package com.ruoyi.Student_management.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生德育对象 tb_student_moral_education
 *
 * @author ruoyi
 * @date 2023-12-26
 */
public class TbStudentMoralEducation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 年级id */
    @Excel(name = "年级id")
    private String gradeId;

    /** 班级id */
    @Excel(name = "班级id")
    private String classId;

    /** 学生id */
    @Excel(name = "学生id")
    private String studentId;

    /** 类别id */
    @Excel(name = "类别id")
    private String typeId;

    /** 被扣分数 */
    @Excel(name = "被扣分数")
    private Long demerit;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    // 班级名称
    private String className;

    // 年级名称
    private String gradeName;

    // 学生名称
    private String studentName;

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setGradeId(String gradeId)
    {
        this.gradeId = gradeId;
    }

    public String getGradeId()
    {
        return gradeId;
    }
    public void setClassId(String classId)
    {
        this.classId = classId;
    }

    public String getClassId()
    {
        return classId;
    }
    public void setStudentId(String studentId)
    {
        this.studentId = studentId;
    }

    public String getStudentId()
    {
        return studentId;
    }
    public void setTypeId(String typeId)
    {
        this.typeId = typeId;
    }

    public String getTypeId()
    {
        return typeId;
    }
    public void setDemerit(Long demerit)
    {
        this.demerit = demerit;
    }

    public Long getDemerit()
    {
        return demerit;
    }
    public void setDate(Date date)
    {
        this.date = date;
    }

    public Date getDate()
    {
        return date;
    }

    @Override
    public String toString() {
        return "TbStudentMoralEducation{" +
                "id='" + id + '\'' +
                ", gradeId='" + gradeId + '\'' +
                ", classId='" + classId + '\'' +
                ", studentId='" + studentId + '\'' +
                ", typeId='" + typeId + '\'' +
                ", demerit=" + demerit +
                ", date=" + date +
                ", className='" + className + '\'' +
                ", gradeName='" + gradeName + '\'' +
                ", studentName='" + studentName + '\'' +
                '}';
    }
}
